package homework0309;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class PWDemo1 {
    public static void main(String[] args) throws FileNotFoundException {
        FileOutputStream fow=new FileOutputStream("abc.txt");
        OutputStreamWriter osw=new OutputStreamWriter(fow, StandardCharsets.UTF_8);
        BufferedWriter bw=new BufferedWriter(osw);
        PrintWriter pw=new PrintWriter(bw,true);
        pw.write("fjdksla ");
        pw.write("飞机我回去就");
        System.out.println("写出完成");
        pw.close();
    }
}
